# -*- coding:utf-8 -*-

# @Time : 2023/6/2 17:40
# @Author : 快乐的小猴子
# @Version : 
# @Function : 

from CONFIG import setting


class BaseClass:
    def send(self, url, num=1):
        """
        发送请求
        :param url: 书架信息url
        :param num: 第 num 页
        :return: resp 服务器应答的数据
        """
        url_new = url.format(num)
        resp = setting.session.get(url_new, headers=setting.HEADERS)
        return resp
